CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=lhetools.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=lhetools

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

unw2lhe.exe:
	g++ -o unw2lhe.exe unw2lhe.cpp
lhco2lhe.exe:
	g++ -o lhco2lhe.exe lhco2lhe.cpp
